/*
 * @Author: heinan
 * @Date: 2021-07-14 12:01:41
 * @Last Modified by: heinan
 * @Last Modified time: 2021-07-14 12:11:55
 */
import RouterMap from "./map";
import { BrowserRouter } from "react-router-dom";
import Routes from "./routes";

const RouterView = function (props) {
  const routes = props.routes ? props.routes : Routes;
  return <RouterMap routes={routes}></RouterMap>;
};
export const Router = BrowserRouter;
export default RouterView;
